package com.bfmet.price;

import java.util.List;

import javax.faces.bean.ManagedBean;

import com.bfmet.common.base.DAOWrapper;
import com.bfmet.entity.Price;

@ManagedBean
public class PriceAction extends DAOWrapper {

	public List<Price> getPriceList() {
		String jpasql = "select n from " + Price.class.getSimpleName()
				+ " n order by n.createTime desc, n.id asc";
		return this.query(Price.class, jpasql, 8);
	}
}
